﻿using eProcurement.DAL;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace eProcurement.controls
{
    public partial class AnnouncementItemControl : System.Web.UI.UserControl
    {
        protected void Page_Load( object sender, EventArgs e )
        {

        }

        public void Setup( Announcement announcement )
        {
            lblAnnouncement.InnerText = announcement.Description;
            lblDate.InnerText = announcement.DatePosted.ToString( "ddd d MMM yyyy" );
        }
    }
}